﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace MvcApplication4.Controllers
{
    public class TestManyParamController : Controller
    {


        public class GameState
        {

            public List<ChessMan> AllChessMen;


            public string WhoStrokeFirst;


            public string WhoPlayWhite;

            //public GameState();
        }
        //
        // GET: /TestManyParam/
        public class ChessMan
        {
          
            public string Name;


            public int X;


            public int Y;

            //public ChessMan();
        }

        public ActionResult Index()
        {
            string ms = "привет это строка";
            List<ChessMan> df = new List<ChessMan>();
            ChessMan ch1 = new ChessMan();
            ch1.Name = "Tyra";
            ch1.X = 1;
            ch1.Y = 2;
            df.Add(ch1);

            GameState gs = new GameState();
            gs.AllChessMen = df;
            gs.WhoPlayWhite = "gerbert";
            gs.WhoStrokeFirst = "ываываываыв";

            //df.Add("dfgdfg");
            //df.Add("dfg");
            return Json(gs, JsonRequestBehavior.AllowGet); ;
        }

    }
}
